package jsyf.oa.entity.business;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Maqiuqiu on 2018/6/12.
 */
@Entity
@Table(name = "t_apl_business_trust_trial", schema = "oa", catalog = "")
public class BusinessTrustTrialEntity extends BaseEntity {

    private String mainId;
    private String trustTrialId;
    private String trustTrialName;
    private String trustTrialFlag;
    private Date trustTrialTime;
    private String trustTrialAdvise;
    private Integer trustTrialSort;


    public String getTrustTrialAdvise() {
        return trustTrialAdvise;
    }

    public void setTrustTrialAdvise(String trustTrialAdvise) {
        this.trustTrialAdvise = trustTrialAdvise;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getTrustTrialId() {
        return trustTrialId;
    }

    public void setTrustTrialId(String trustTrialId) {
        this.trustTrialId = trustTrialId;
    }

    public String getTrustTrialName() {
        return trustTrialName;
    }

    public void setTrustTrialName(String trustTrialName) {
        this.trustTrialName = trustTrialName;
    }

    public String getTrustTrialFlag() {
        return trustTrialFlag;
    }

    public void setTrustTrialFlag(String trustTrialFlag) {
        this.trustTrialFlag = trustTrialFlag;
    }

    public Date getTrustTrialTime() {
        return trustTrialTime;
    }

    public void setTrustTrialTime(Date trustTrialTime) {
        this.trustTrialTime = trustTrialTime;
    }

    public Integer getTrustTrialSort() {
        return trustTrialSort;
    }

    public void setTrustTrialSort(Integer trustTrialSort) {
        this.trustTrialSort = trustTrialSort;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("MAIN_ID", getMainId());
        obj.put("TRUST_TRIAL_ID", getTrustTrialId());
        obj.put("TRUST_TRIAL_NAME", getTrustTrialName());
        obj.put("TRUST_TRIAL_FLAG", getTrustTrialFlag());
        obj.put("TRUST_TRIAL_TIME", getTrustTrialTime());
        obj.put("TRUST_TRIAL_ADVISE", getTrustTrialAdvise());
        obj.put("TRUST_TRIAL_SORT", getTrustTrialSort());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_apl_business_trust_trial";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("MAIN_ID", "mainId");
        obj.put("TRUST_TRIAL_ID", "trustTrialId");
        obj.put("TRUST_TRIAL_NAME", "trustTrialName");
        obj.put("TRUST_TRIAL_FLAG", "trustTrialFlag");
        obj.put("TRUST_TRIAL_TIME", "trustTrialTime");
        obj.put("TRUST_TRIAL_ADVISE", "trustTrialAdvise");
        obj.put("TRUST_TRIAL_SORT", "trustTrialSort");
        return obj;
    }
}
